Skip to content

gh-146102: Fix type slot_bf_getbuffer() error handling#151346

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:getbuffer
Open

gh-146102: Fix type slot_bf_getbuffer() error handling#151346
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:getbuffer

Conversation

@vstinner

@vstinner vstinner commented Jun 11, 2026

Copy link
Copy Markdown
Member

Call PyBuffer_Release() if PyObject_GC_New() fails.

Fix also bytes_join(): only call Py_DECREF(item) after formatting the error message which uses item.

Call PyBuffer_Release() if PyObject_GC_New() fails.

Fix also bytes_join(): only call Py_DECREF(item) after formatting the
error message which uses item.
@vstinner

Copy link
Copy Markdown
Member Author

Tests / Windows / Build and test (x64, tail-call) (pull_request): Failing after 10m

It's a test_logging test which fails randomly: I reported the bug to issue gh-84649.

FAIL: test_rollover_at_midnight (test.test_logging.TimedRotatingFileHandlerTest.test_rollover_at_midnight)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants